package org.adorsys.aderp.orga.service;

import java.util.List;

import org.adorsys.aderp.orga.domain.OrgaPerson;
import org.adorsys.aderp.orga.domain.OrgaResource;
import org.adorsys.aderp.orga.domain.ResResRelation;
import org.adorsys.aderp.orga.domain.ResourceRelation;
import org.adorsys.aderp.orga.domain.ResourceRelationRole;
import org.springframework.data.domain.Page;
import org.springframework.roo.addon.layers.service.RooService;

@RooService(domainTypes = { org.adorsys.aderp.orga.domain.ResourceRelation.class })
public interface ResourceRelationService {
	List<ResourceRelation> findByTargetResource(OrgaResource orgaResource);
	List<ResourceRelation> findByPerson(OrgaPerson person);
	Page<ResourceRelation> findByTargetResourcePage(OrgaResource orgaResource,Integer page, Integer size);
	Page<ResourceRelation> findByPersonPage(OrgaPerson person,Integer page, Integer size);
	Page<ResourceRelation> searchResourceRelation(OrgaPerson person, OrgaResource targetResource, ResourceRelationRole relationRole,Integer page, Integer size);

}
